package com.congee02.service.impl;

import com.congee02.service.LoginService;
import com.congee02.service.UserService;
import com.congee02.spring.annoation.Autowired;
import com.congee02.spring.annoation.Component;
import com.congee02.spring.aware.BeanNameAware;
import com.congee02.spring.beans.InitializingBean;

import java.util.Date;

/**
 * @author congee(congee02 @ 163.com)
 * @date 1/27/2023 9:49 AM
 */
@Component("userService")
public class UserServiceImpl implements UserService, BeanNameAware, InitializingBean {

    @Autowired
    public LoginService service;

    private String beanName;
    private Date date;

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public void setBeanName(String name) {
        this.beanName = name;
    }

    public String getBeanName() {
        return beanName;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("[INITIALIZING][afterPropertiesSet] VALIDATE");
    }
}
